var app = getApp();
var SERVER_URL=app.globalData.SERVER_URL;

Page({
    data: {

    },
    onLoad(){
        var date=new Date();
        this.setData({
            workLogs:""
        });
        this.getType();
    },
    onShow:function(){

    },
    query_click:function(e){
        wx.navigateTo({
            url: './desc'
        });
    },
    getType:function(){
        let url = "/work/signInfo";
        let openId = wx.getStorageSync('openId');
        url = SERVER_URL+url;
        var obj=[];
        var _self=this;
        wx.request({
            url: url,
            data: {
                "key": app.globalData.key,
                openId: openId,
            },
            method: 'GET',
            header: {
                "Content-Type": "application/x-www-form-urlencoded"
            },
            success:function(res){
                let result = res.data;
                if(result && result.code==0){
                    _self.setData({
                        workLogs:result.data,
                    });
                }
            }
        });
    },
});